﻿using ConfExpert.Forms.Base;
using DevTeam;

using System;
namespace ConfExpert.Forms.Siparisler
{
    public partial class RenkBazindaAdet : XForm
    {
        public RenkBazindaAdet()
        {
            InitializeComponent();
        }

        private void RenkBazindaAdet_Load(object sender, EventArgs e)
        {
            txtAdim.EditValue = 50;
            cmbTip.EditValue = "F";
            btnGoster.ItemClick += btnGoster_ItemClick;
            btnGoster.PerformClick();
        }

        void btnGoster_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.Init("RenkBazindaAdetler", cmbTip.EditValue.ToStr(), txtAdim.EditValue.ToInt());
            gridView1.FormatAsNumber(3, "DosyaBasinaOrtRenk");
            gridView1.FormatAsNumber(0, "AdetGomlek", "AdetDosya", "AdetDosyaRenk");
            gridView1.AddSummary("AdetGomlek", "AdetDosya", "AdetDosyaRenk");
            gridView1.BestFitColumns();
        }
    }
}
